﻿<%@ control language="C#" autoeventwireup="true" inherits="ModulesMembership_wucGroupsRoles, MCWF" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="../Common/wucToolbar.ascx" TagName="wucToolbar" TagPrefix="uc2" %>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="0" align="center" width="790">
            <tr>
                <td height="10" align="center" valign="middle">
                </td>
            </tr>
            <tr>
                <td align="center" valign="top">
                    <uc2:wucToolbar ID="objToolBar" runat="server" OnToolbarButtonClicked="objToolBar_ToolbarButtonClicked"
                        FunctionName="QUẢN LÝ ROLE" ToolbarStatus="NOMAL"></uc2:wucToolbar>
                </td>
            </tr>
            <tr>
                <td height="40" align="center" valign="middle">
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Font-Bold="True">LỰA CHỌN TÁC VỤ TRÊN THANH CÔNG CỤ</asp:Label>
                    <!-- UPdATE PROGRESS -->
                    <asp:UpdateProgress runat="server" ID="ajaxupUpdateProgresss">
                        <ProgressTemplate>
                            <table cellpadding="0" width="300" cellspacing="0" border="0" height="30px">
                                <tr>
                                    <td align="right" valign="middle">
                                        Đang xử lý dữ liệu&nbsp;&nbsp;
                                    </td>
                                    <td align="left" valign="middle">
                                        <asp:Image ID="imgLoading" runat="server" ImageUrl="~/Images/loadingimages/LoadingProgressBar.gif" />
                                    </td>
                                </tr>
                            </table>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <!-- UPdATE PROGRESS -->
                </td>
            </tr>
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="790" class="MultiPage">
                <tbody>
                    <tr height="30px">
                        <td align="right">
                            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#f0f2f4">
                                <tbody>
                                    <tr height="30px">
                                        <td width="5px">
                                            &nbsp;</td>
                                        <td align="center" valign="middle">
                                            <b>
                                                <asp:Label ID="lblDetailMode" runat="server"></asp:Label></b><asp:Label ID="Label1"
                                                    runat="server" Visible="False"></asp:Label>
                                        </td>
                                        <td width="5px">
                                            &nbsp;</td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" valign="middle">
                            <table align="center" border="0" cellpadding="0" cellspacing="0" width="790">
                                <tbody>
                                    <tr>
                                        <td height="10">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="100px">
                                        </td>
                                        <td align="left">
                                            &nbsp;RoleName:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtRoleName" runat="server" Width="395"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRoleName"
                                                ErrorMessage="Hãy nhập RoleName">*</asp:RequiredFieldValidator>
                                        </td>
                                        <td align="left">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="15">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="100px">
                                        </td>
                                        <td align="left">
                                            &nbsp;Danh sách Role:
                                        </td>
                                        <td>                                            
                                            <telerik:RadGrid ID="rgrdGridDataList" runat="server" Skin="WebBlue" Width="395px"
                                                PageSize="15" AllowMultiRowSelection="true" AllowPaging="true" ShowGroupPanel="false"
                                                AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                                                BorderWidth="0px" GridLines="Both" AutoGenerateColumns="false" OnPageIndexChanged="rgrdGridDataList_PageIndexChanged"
                                                AllowSorting="false">
                                                <ClientSettings EnablePostBackOnRowClick="True">
                                                    <Selecting AllowRowSelect="True" />
                                                </ClientSettings>
                                                <PagerStyle Mode="NextPrevAndNumeric" NextPagesToolTip="Trang sau" NextPageToolTip="Trang sau"
                                                    PagerTextFormat="Lựa chọn trang: {4} &amp;nbsp;Trang {0} / {1}, bản ghi {2} - {3} / {5}."
                                                    PrevPagesToolTip="Trang trước" PrevPageToolTip="Trang trước" />
                                                <MasterTableView DataKeyNames="RoleName">
                                                    <RowIndicatorColumn Visible="False">
                                                        <HeaderStyle Width="20px" />
                                                    </RowIndicatorColumn>
                                                    <ExpandCollapseColumn Resizable="False" Visible="False">
                                                        <HeaderStyle Width="20px" />
                                                    </ExpandCollapseColumn>
                                                    <EditFormSettings>
                                                        <PopUpSettings ScrollBars="None" />
                                                    </EditFormSettings>
                                                    <Columns>
                                                        <telerik:GridClientSelectColumn UniqueName="SelectRow">
                                                            <HeaderStyle HorizontalAlign="Center" Width="25px" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </telerik:GridClientSelectColumn>
                                                        <telerik:GridBoundColumn DataField="RoleName" HeaderText="RoleName" ReadOnly="True"
                                                            UniqueName="RoleName">
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </telerik:GridBoundColumn>                                                        
                                                    </Columns>
                                                </MasterTableView>
                                            </telerik:RadGrid>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="15">
                                        </td>
                                    </tr>
                                    <tr height="15px" valign="middle">
                                        <td width="100px">
                                        </td>
                                        <td align="center" colspan="2">
                                            <asp:Label ID="lblCurrentMode" runat="server" Visible="False"></asp:Label><br />
                                            <asp:ValidationSummary ID="vsDetailValidate" runat="server" DisplayMode="SingleParagraph"
                                                Font-Bold="True" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
    </ContentTemplate>
</asp:UpdatePanel>
